<template>
  <div>Child {{ modelValue }}</div>
  <button @click="$emit('update:modelValue', modelValue + 1)">更新</button>
</template>

<script lang="ts">
export default {
  name: "Child",
  props: {
    modelValue: {
      type: Number,
      required: true,
    },
  },
  mounted() {
    console.log(this);
  },
};
</script>

<style></style>
